package com.lin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lin
 * @since 2022-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("gas_log")
public class GasLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("device_id")
    private Integer deviceId;

    @TableField("device_name")
    private String deviceName;

    @TableField("gas_id")
    private Integer gasId;

    @TableField("gas_name")
    private String gasName;

    @TableField("value")
    private Double value;

    @TableField("department_did")
    private Integer departmentDid;

    @TableField("department_name")
    private String departmentName;

    @TableField("manager")
    private String manager;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;


    public static final String ID = "id";

    public static final String DEVICE_ID = "device_id";

    public static final String DEVICE_NAME = "device_name";

    public static final String GAS_ID = "gas_id";

    public static final String GAS_NAME = "gas_name";

    public static final String VALUE = "value";

    public static final String DEPARTMENT_DID = "department_did";

    public static final String DEPARTMENT_NAME = "department_name";

    public static final String MANAGER = "manager";

    public static final String CREATE_TIME = "create_time";

}
